<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html style="height: 100%;width: 100%">
<head>
	<title></title>
    <%@include file="/WEB-INF/common/hplus-css.jsp"%>
    <%@include file="/WEB-INF/common/hplus-js.jsp" %>
    <style type="text/css">
    #required{
	color:red;
}
    </style>
</head>

<body class="gray-bg" style="height: 100%;width: 100%">
    <div class="wrapper wrapper-content animated fadeInRight" style="height: 100%;width: 100%">
        <div class="row" style="height: 100%;width: 100%">
            <div class="col-sm-12" style="height: 100%;width: 100%">
                <div class="ibox" style="height: 100%;width: 100%">
                    <div class="ibox-content" style="height: 100%;width: 100%">
                        <form action="${path}/wallte/reply" class="form-horizontal m-t" id="userForm" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="${id}" />
                            <div>
                            <div class="form-group" >
                                <label class="col-sm-4 control-label"><span >*</span>原因：</label>
                                <div class="col-sm-6">
                                <input type="text" name="msg" placeholder="" class="form-control">
                                </div>
                            </div>
                           </div>
                        </form>
                        <div class="form-group" style="text-align: center;margin-bottom: 0px;">
                            <div class="col-sm-4 col-sm-offset-3" style="text-align: center">
                                <button class="btn btn-primary" id="add-btn" type="button">确认</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <%@include file="/WEB-INF/common/hplus-suggest-js.jsp"%>
    <!--手机号 生分证，表单校验插件 -->
<script src="${pageContext.request.contextPath}/assets/js/validate/dist/additional-methods.js"></script>
    
    <script src="${path}/assets/hplus/js/demo/form-validate-demo.js"></script>
    <script>

            $("#add-btn").click(function() {
                if(true) {
            		$("#userForm").ajaxSubmit({
                        dataType: "json",
                        success: function (json) {
                            var code = json.code;
                            if(code == 0){
                            	layer.msg(json.msg, {icon: 1});
                                setTimeout(function(){
                                	window.parent.location.reload();
                                	parent.parent.layer.closeAll();
                                }, 2000);
                            }else{
                            	layer.msg(json.msg, {icon: 5,time:3000});
                            }
                        },
                        error:function(){
                        	layer.msg('处理发送错误! 请联系管理员', {icon: 5});
                        }
                    });
            	}else{
            		layer.msg("请填写完整信息！！！！", {
						icon : 5
					});
            	}
        });




    </script>

</body>
</html>
